//获取1~7之间的随机整数
var week = Math.ceil(Math.random()*7);

switch(week){
    case 1:
        console.log("周一");
        break;
    case 2:
        console.log("周二");
        break;
    case 3:
        console.log("周三");
        break;
    case 4:
        console.log("周四");
        break;
    case 5:
        console.log("周五");
        break;
    case 6:
        console.log("周六");
        break;
    default:
        console.log("周末");
}
